﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BankSystemWithCSharp.DataBase
{
    public partial class BankDataBase
    {
        private TransfromIDGenerator transformIDGen = new TransfromIDGenerator();
        private string GenerateID()
        {
            string id = transformIDGen;
            return id;
        }
        public IEnumerable<TransformRecord> GetTransformRecord(TransformRecordArbiName orderBy)
        {
            string accountNumber = loginAccount.AccountNumber;
            return from record in transforms
                   where record.MoneyFrom == accountNumber || record.MoneyTo == accountNumber
                   orderby record[orderBy]
                   select record;
        }
    }
}
